package wwl.lsf.imitateMybatis;

import java.util.List;
import java.util.Map;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import wwl.lsf.AppConfig;
import wwl.lsf.DaoImpl;
import wwl.lsf.ScoreDao;
import wwl.lsf.TangDao;

public class Test {

  public static void main(String[] args) {

    AnnotationConfigApplicationContext annotationConfigApplicationContext =
        new AnnotationConfigApplicationContext(AppConfig.class);
    System.out.println();
    ScoreDao bean = annotationConfigApplicationContext.getBean(ScoreDao.class);
    List<Map<String, Object>> query = annotationConfigApplicationContext.getBean(ScoreDao.class)
        .query("wwl",27);
//    LetCodeMapper wwlrrr = (LetCodeMapper) annotationConfigApplicationContext.getBean("wwlrrr");
//    wwlrrr.executeSql("sdf");
    System.out.println();

  }

}
